<?php
$file = 'log.txt'; 
$f = fopen($file,'a+');
$str = date('Y-m-d H:i:s',time()).'=>'.json_encode($_GET).'\n\r';
fwrite($f,$str);
fclose($f);  
exit($str);
?>